package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GxzyfYfxxMapper;
import com.ruoyi.system.domain.GxzyfYfxx;
import com.ruoyi.system.service.IGxzyfYfxxService;
import com.ruoyi.common.core.text.Convert;

/**
 * 药房信息注册Service业务层处理
 * 
 * @author GXzyf
 * @date 2022-09-13
 */
@Service
public class GxzyfYfxxServiceImpl implements IGxzyfYfxxService 
{
    @Autowired
    private GxzyfYfxxMapper gxzyfYfxxMapper;

    /**
     * 查询药房信息注册
     * 
     * @param 药房ID 药房信息注册主键
     * @return 药房信息注册
     */
    @Override
    public GxzyfYfxx selectGxzyfYfxxBy药房ID(String 药房ID)
    {
        return gxzyfYfxxMapper.selectGxzyfYfxxBy药房ID(药房ID);
    }

    /**
     * 查询药房信息注册列表
     * 
     * @param gxzyfYfxx 药房信息注册
     * @return 药房信息注册
     */
    @Override
    public List<GxzyfYfxx> selectGxzyfYfxxList(GxzyfYfxx gxzyfYfxx)
    {
        return gxzyfYfxxMapper.selectGxzyfYfxxList(gxzyfYfxx);
    }

    /**
     * 新增药房信息注册
     * 
     * @param gxzyfYfxx 药房信息注册
     * @return 结果
     */
    @Override
    public int insertGxzyfYfxx(GxzyfYfxx gxzyfYfxx)
    {
        return gxzyfYfxxMapper.insertGxzyfYfxx(gxzyfYfxx);
    }

    /**
     * 修改药房信息注册
     * 
     * @param gxzyfYfxx 药房信息注册
     * @return 结果
     */
    @Override
    public int updateGxzyfYfxx(GxzyfYfxx gxzyfYfxx)
    {
        return gxzyfYfxxMapper.updateGxzyfYfxx(gxzyfYfxx);
    }

    /**
     * 批量删除药房信息注册
     * 
     * @param 药房IDs 需要删除的药房信息注册主键
     * @return 结果
     */
    @Override
    public int deleteGxzyfYfxxBy药房IDs(String 药房IDs)
    {
        return gxzyfYfxxMapper.deleteGxzyfYfxxBy药房IDs(Convert.toStrArray(药房IDs));
    }

    /**
     * 删除药房信息注册信息
     * 
     * @param 药房ID 药房信息注册主键
     * @return 结果
     */
    @Override
    public int deleteGxzyfYfxxBy药房ID(String 药房ID)
    {
        return gxzyfYfxxMapper.deleteGxzyfYfxxBy药房ID(药房ID);
    }
}
